package com.appkubes.mall.admin.application.user.account.withdraw.service.impl;

import com.appkubes.mall.admin.application.user.account.withdraw.entity.vo.AccountWithdrawVO;
import com.appkubes.mall.admin.application.user.account.withdraw.service.AccountWithdrawService;
import com.appkubes.mall.core.entity.MallUserAccountWithdraw;
import com.appkubes.mall.core.service.impl.BaseMallUserAccountWithdrawServiceImpl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

@Service
public class AccountWithdrawServiceImpl extends BaseMallUserAccountWithdrawServiceImpl implements AccountWithdrawService {

    @Override
    public IPage<MallUserAccountWithdraw> getList(AccountWithdrawVO accountWithdrawVO) {
        MallUserAccountWithdraw entity = new MallUserAccountWithdraw();
        BeanUtils.copyProperties(accountWithdrawVO, entity);

        return this.selectPageByEntity(entity, accountWithdrawVO);
    }
}
